Trees | Indices | Toggle frames |
---|
Graphics configuration.
A GLConfig stores the preferences for OpenGL attributes such as the number of auxiliary buffers, size of the colour and depth buffers, double buffering, stenciling, multi- and super-sampling, and so on.
Different platforms support a different set of attributes, so these are set with a string key and a value which is integer or boolean.
See also pyglet.window.Screen.get_best_config and pyglet.window.Screen.get_matching_configs.
__init__(self,
**kwargs)
Create a template config with the given attributes.
|
|
list of tuple (name, value) |
get_gl_attributes(self)
Return a list of attributes set on this config.
|
Context |
create_context(self,
share)
Create a GL context that satisfies this configuration.
|
bool |
is_complete(self)
Determine if this config is complete and able to create a context.
|
__repr__(self) |
Create a template config with the given attributes.
Specify attributes as keyword arguments, for example:
template = Config(double_buffer=True)
Determine if this config is complete and able to create a context.
Configs created directly are not complete, they can only serve as templates for retrieving a supported config from the system. For example, pyglet.window.Screen.get_matching_configs returns complete configs.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:18 2009 | http://epydoc.sourceforge.net |